Call processing method and control apparatus, automatic call distribution apparatus, and agent terminal

ABSTRACT

Embodiments of the present invention provide a call processing method and control apparatus, an automatic call distribution apparatus, and an agent terminal. The call processing method, which executed by the call control apparatus, includes: receiving, a processing request for a call, and extracting a media connection address and a media capability of an automatic call distribution apparatus; performing, media negotiation based on a media capability of an agent terminal and the automatic call distribution apparatus; and establishing, a media session between the agent terminal and the automatic call distribution apparatus according to a media connection address of the agent terminal, the media connection address of the automatic call distribution apparatus, and a media negotiation result. The embodiments of the present invention can reduce the processing load of an entire cloud server, which effectively ensures the service quality of a call center constructed based on cloud computing technologies.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.15/095,814, filed on Apr. 11, 2016, which is a continuation of U.S.patent application Ser. No. 14/325,000, filed on Jul. 7, 2014, which isa continuation of International Application No. PCT/CN2012/085313, filedon Nov. 27, 2012. The International Application claims priority toChinese Patent Application No. 201210088209.9, filed on Mar. 29, 2012.The afore-mentioned patent applications are hereby incorporated byreference in their entireties.

TECHNICAL FIELD

The present invention relates to call center technologies, and inparticular, to a call processing method and control apparatus, anautomatic call distribution apparatus, and an agent terminal.

BACKGROUND

With development of technologies such as distributed computing, virtualcomputing, and flexible resource management, cloud computing has becomea new service mode. Desktop cloud is one of cloud computing servicemodes, featuring advantages such as high information security, easymaintenance, being advantageous for energy saving and emissionreduction, environmental protection, and mobile office. This cloudcomputing service mode centralizes processing capabilities of personalterminals (such as a central processing unit, CPU and a hard disk) ontoa cloud computing resource center (such as a network computing server).In this case, the personal terminals become thin clients (TCs). Thecloud computing resource center provides a virtual “computer” for eachTC. In this way, all thin clients use shared resources, computingresources are dynamic and flexible, and resources are allocated ondemand.

Though the desktop cloud technology has the foregoing advantages, theindustry has not developed a feasible solution for implementing a callcenter based on the desktop cloud technology. A main reason is that acloud computing technical architecture centralizes massive computingtasks onto a cloud server for processing. In addition to processingvarious cloud operation data between an agent terminal and the cloudserver, the cloud server also needs to perform various streaming mediaprocessing, for example, but not limited to, VoIP (Voice over IP) voicecodec processing, digital signal de-jittering, and echo and delaycontrol, for an incoming call directed to the agent terminal. Therefore,softphone processing logic must be configured on the cloud server. In acall center, the streaming media processing tasks are intensive, whichcertainly causes excessive overload of the cloud server and affect theoverall service quality of the call center.

SUMMARY

In view of this, it is necessary to provide a call processing method toeffectively reduce the streaming media processing load of a cloud serverduring call processing.

Meanwhile, a call control apparatus is provided to effectively reducethe streaming media processing load of the cloud server during callprocessing.

Meanwhile, an automatic call distribution apparatus is provided toeffectively reduce the streaming media processing load of the cloudserver during call processing.

Meanwhile, an agent terminal is provided to effectively reduce thestreaming media processing load of the cloud server during callprocessing.

According to an aspect of the present invention, a call processingmethod is provided and includes:

receiving, by a call control apparatus, a processing request for a call,where the processing request is distributed by an automatic calldistribution apparatus, and extracting a media connection address and amedia capability of the automatic call distribution apparatus carried inthe processing request;

performing, by the call control apparatus, media negotiation based on amedia capability of an agent terminal and the media capability of theautomatic call distribution apparatus; and

establishing, by the call control apparatus, a media session between theagent terminal and the automatic call distribution apparatus accordingto a media connection address of the agent terminal, the mediaconnection address of the automatic call distribution apparatus, and amedia negotiation result, so that the agent terminal processes the call.

According to an aspect of the present invention, a call processingmethod is provided and includes:

distributing, by an automatic call distribution apparatus, a processingrequest for a call to a call control apparatus, where the processingrequest carries a media connection address and a media capability of theautomatic call distribution apparatus;

receiving, by the automatic call distribution apparatus, a mediaconnection address of an agent terminal returned by the call controlapparatus and a media negotiation result determined by the call controlapparatus by performing media negotiation based on a media capability ofthe agent terminal and the media capability of the automatic calldistribution apparatus; and

establishing, by the automatic call distribution apparatus, a mediasession with the agent terminal according to the media connectionaddress of the agent terminal and the media negotiation result so thatthe agent terminal processes the call.

According to an aspect of the present invention, a call processingmethod is provided and includes:

receiving, by an agent terminal, a media connection address of anautomatic call distribution apparatus sent by a call control apparatusand a media negotiation result determined by the call control apparatusby performing media negotiation based on a media capability of the agentterminal and a media capability of the automatic call distributionapparatus; and

establishing, by the agent terminal, a media session with the automaticcall distribution apparatus according to the media connection address ofthe automatic call distribution apparatus and the media negotiation, andprocessing a call distributed by the automatic call distributionapparatus by using the media session.

According to an aspect of the present invention, a call controlapparatus is provided and includes:

an extracting module, configured to receive a processing request for acall, where the processing request is distributed by an automatic calldistribution apparatus, and extract a media connection address and amedia capability of the automatic call distribution apparatus carried inthe processing request;

a negotiating module, configured to perform media negotiation based on amedia capability of the agent terminal and the media capability of theautomatic call distribution apparatus; and

an establishing module, configured to establish a media session betweenthe agent terminal and the automatic call distribution apparatusaccording to a media connection address of the agent terminal, the mediaconnection address of the automatic call distribution apparatus, and amedia negotiation result, so that the agent terminal processes the call.

According to an aspect of the present invention, an automatic calldistribution apparatus is provided and includes:

a sending module, configured to distribute a processing request for acall to a call control apparatus, where the processing request carries amedia connection address and a media capability of the automatic calldistribution apparatus;

a receiving module, configured to receive a media connection address ofan agent terminal returned by the call control apparatus and a medianegotiation result determined by the call control apparatus byperforming media negotiation based on a media capability of the agentterminal and the media capability of the automatic call distributionapparatus; and

an establishing module, configured to establish a media session with theagent terminal according to the media connection address of the agentterminal and the media negotiation result so that the agent terminalprocesses the call.

According to an aspect of the present invention, an agent terminal isprovided and includes:

a receiving module, configured to receive a media connection address ofan automatic call distribution apparatus sent by a call controlapparatus and a media negotiation result determined by the call controlapparatus by performing media negotiation based on a media capability ofthe agent terminal and a media capability of the automatic calldistribution apparatus; and

a processing module, configured to establish a media session with theautomatic call distribution apparatus according to the media connectionaddress of the automatic call distribution apparatus and the medianegotiation and process a call distributed by the automatic calldistribution apparatus by using the media session.

In the technical solutions provided in the embodiments of the presentinvention, a call control apparatus located on a cloud server isresponsible for performing media negotiation based on a media capabilityof an agent terminal and a media capability of an automatic calldistribution apparatus, and establishing a media session between theagent terminal and the automatic call distribution apparatus accordingto media connection addresses of the agent terminal and the automaticcall distribution apparatus and a media negotiation result. After themedia session is established, the automatic call distribution apparatusdirectly sends streaming media data related to the call to the agentterminal. The agent terminal performs streaming media processing such asencoding and decoding. Therefore, in the technical solutions provided inthe embodiments of the present invention, streaming media processingsuch as encoding and decoding does not need to be performed on the callcontrol apparatus, which significantly reduces the processing load ofthe entire cloud server and effectively ensures the service quality of acall center constructed based on cloud computing technologies.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments.Apparently, the accompanying drawings in the following description showmerely some embodiments of the present invention, and a person ofordinary skill in the art may still derive other drawings from theseaccompanying drawings without creative efforts.

FIG. 1 is a schematic diagram of a network structure of a call centeraccording to an embodiment of the present invention;

FIG. 2 is an exemplary flowchart of a call processing method accordingto an embodiment of the present invention;

FIG. 3 is an exemplary flowchart of a call processing method accordingto an embodiment of the present invention;

FIG. 4 is an exemplary flowchart of a call processing method accordingto an embodiment of the present invention;

FIG. 5 is a signaling diagram of a call processing method according toan embodiment of the present invention;

FIG. 6 is a schematic diagram of a logical structure of a call controlapparatus according to an embodiment of the present invention;

FIG. 7 is a schematic diagram of a logical structure of an automaticcall distribution apparatus according to an embodiment of the presentinvention; and

FIG. 8 is a schematic diagram of a logical structure of an agentterminal according to an embodiment of the present invention.

DETAILED DESCRIPTION

FIG. 1 is a schematic diagram of a network structure of a call center100 according to an embodiment of the present invention. As shown inFIG. 1, the call center 100 includes an automatic call distributionapparatus 102, a cloud server 104, and agent terminals 106, 108, and110.

The call center 100 is constructed based on a desktop cloud technology.The agent terminals 106, 108, and 110 are thin clients and each agentterminal may connect to and communicate with the cloud server 104 byusing a local area network. Surely, each agent terminal may also connectto and communicate with the cloud server 104 by using a wide areanetwork such as the Internet, for example, a SOHO (Small Office HomeOffice) agent terminal. A person skilled in the art should understandthough only three agent terminals, namely, agent terminals 106, 108, and110, are displayed in FIG. 1, the number of agent terminals may be setduring specific implementation according to specific requirements, forexample, but not limited to, the scale required by a call center.

Multiple call control apparatuses (three in this embodiment),corresponding to the agent terminals 106, 108, and 110 on a one-to-onebasis, are arranged on the cloud server 104. Each call control apparatusregisters with the automatic call distribution apparatus 102 so that theautomatic call distribution apparatus 102 distributes a processingrequest for an incoming call to a registered call control apparatus. Forexample, each call control apparatus is a virtual machine (VM) allocatedby the cloud server 104 to an agent terminal corresponding to the callcontrol apparatus, namely, the virtual computer of the agent terminal onthe cloud server. Cloud communication between the virtual computer andthe agent terminal is implemented by using protocols such as theIndependent Computing Architecture (ICA) protocol, Remote DesktopProtocol (RDP), and/or Personal Computer over Internet Protocol (PCoIP).

During running, the automatic call distribution apparatus 102 isconfigured to initiate a processing request for an incoming call to thecloud server 104 when the incoming call is detected. The processingrequest carries a media connection address and a media capability of theautomatic call distribution apparatus 102. During specificimplementation, the automatic call distribution apparatus 102 selects acall control apparatus from the registered call control apparatusesbased on an automatic call distribution (ACD) technology and distributesthe processing request for the call to the call control apparatus.

After the processing request arrives at the cloud server 104, theselected call control apparatus processes the processing request. Thecall control apparatus receives the processing request and extracts themedia connection address and media capability of the automatic calldistribution apparatus 102 carried in the processing request. Then, thecall control apparatus performs media negotiation based on the mediacapability of the agent terminal corresponding to the call controlapparatus and the media capability of the automatic call distributionapparatus 102, or the call control apparatus sends the media connectionaddress and media capability of the automatic call distributionapparatus 102 to the agent terminal corresponding to the call controlapparatus, and then the agent terminal performs media negotiation andreturns a media negotiation result to the call control apparatus. Afterthat, the call control apparatus establishes a media session between theagent terminal and the automatic call distribution apparatus 102according to the media connection address of the agent terminalcorresponding to the call control apparatus, the media connectionaddress of the automatic call distribution apparatus 102, and the medianegotiation result, so that the agent terminal directly processes thecall.

It should be noted that during specific implementation, the call may beeither a voice call or a multimedia call including a video. Theautomatic call distribution apparatus 102 further includes functionsrelated to a computer telephony integration (CTI) device.

Operations performed by the automatic call distribution apparatus 102,the call control apparatuses on the cloud server 104, and the agentterminals 106, 108, and 110 are hereinafter described in detail.

FIG. 2 is an exemplary flowchart of a call processing method 200according to an embodiment of the present invention.

Step 202: A call control apparatus receives a processing request for acall, where the processing request is distributed by an automatic calldistribution apparatus, and extracts a media connection address and amedia capability of the automatic call distribution apparatus carried inthe processing request.

Specifically, when the call is controlled by using the SessionInitiation Protocol (SIP), the processing request may be implemented byusing an Invite message in the SIP. The media connection address andmedia capability may be described by using, for example, but not limitedto, the Session Description Protocol (SDP). The media connection addressmay include, for example, but not limited to, an IP (Internet Protocol)address and a port number of the automatic call distribution apparatus.The media capability may include multiple media capability parameters,for example, but not limited to, an encoding and decoding standard (suchas G.711 or G.723), a media format, and a transmission protocol type(such as the Real-time Transport Protocol (RTP) supported by theautomatic call distribution apparatus.

Step 204: The call control apparatus performs media negotiation based ona media capability of an agent terminal and the media capability of theautomatic call distribution apparatus.

Specifically, when the call control apparatus performs the medianegotiation, the call control apparatus may store the media connectionaddress and media capability of an agent terminal corresponding to thecall control apparatus in advance, and may also obtain the mediaconnection address and media capability of the agent terminal from theagent terminal corresponding to the call control apparatus beforeperforming the media negotiation based on the media capability of theagent terminal and the media capability of the automatic calldistribution apparatus. The media connection address of the agentterminal may include, but is not limited to, an IP address and a portnumber of the agent terminal. The media capability of the agent terminalmay include multiple media capability parameters, for example, but notlimited to, an encoding and decoding standard, a media format, and atransmission protocol type supported by the agent terminal.

When the call control apparatus performs the media negotiation, for eachmedia capability parameter, the call control apparatus calculates anintersection between a value of the media capability parameter in themedia capability of the agent terminal and a value of the mediacapability parameter in the media capability of the automatic calldistribution apparatus, and uses the intersection as a value of themedia capability parameter in a media negotiation result. Therefore, themedia negotiation result includes at least one media capabilityparameter. The value of each media capability parameter is anintersection between the value of the media capability parameter in themedia capability of the agent terminal and the value of the mediacapability parameter in the media capability of the automatic calldistribution apparatus.

Optionally, step 204 may be further implemented specifically as follows:The call control apparatus performs the media negotiation based on themedia capability of the agent terminal and the media capability of theautomatic call distribution apparatus by using the agent terminal. Thatis, the call control apparatus sends the media connection address andmedia capability of the automatic call distribution apparatus to theagent terminal; the agent terminal performs the media negotiation basedon the media capability of the agent terminal and the media capabilityof the automatic call distribution apparatus and returns the medianegotiation result to the call control apparatus. In this case, themedia connection address of the agent terminal may be stored on the callcontrol apparatus in advance or be returned to the call controlapparatus with the media negotiation result.

When the agent terminal performs the media negotiation, for each mediacapability parameter, the agent terminal calculates an intersectionbetween a value of the media capability parameter in the mediacapability of the agent terminal and a value of the media capabilityparameter in the media capability of the automatic call distributionapparatus, and uses the intersection as a value of the media capabilityparameter in the media negotiation result. Therefore, the medianegotiation result includes at least one media capability parameter. Thevalue of each media capability parameter is an intersection between thevalue of the media capability parameter in the media capability of theagent terminal and the value of the media capability parameter in themedia capability of the automatic call distribution apparatus.

Step 206: The call control apparatus establishes a media session betweenthe agent terminal and the automatic call distribution apparatusaccording to the media connection address of the agent terminal, themedia connection address of the automatic call distribution apparatus,and the media negotiation result, so that the agent terminal processesthe call.

Specifically, when the call control apparatus performs the medianegotiation, a process of establishing a media session is as follows:The call control apparatus sends the media connection address of theagent terminal and the media negotiation result to the automatic calldistribution apparatus to notify the automatic call distributionapparatus to initiate, according to the media negotiation result, amedia session request to the agent terminal for which the mediaconnection address is configured. In addition, the call controlapparatus sends the media connection address of the automatic calldistribution apparatus and the media negotiation result to the agentterminal to notify the agent terminal to accept the media sessionrequest that is initiated, by the automatic call distribution apparatusfor which the media connection address is configured, to the agentterminal according to the media negotiation result, so that the mediasession is established with the automatic call distribution apparatus.

When the agent terminal performs the media negotiation, a process ofestablishing a media session is as follows: The call control apparatussends the media connection address of the agent terminal and the medianegotiation result to the automatic call distribution apparatus tonotify the automatic call distribution apparatus to initiate, accordingto the media negotiation result, a media session request to the agentterminal for which the media connection address is configured. In thiscase, the agent terminal has performed the media negotiation by itself;therefore, the call control apparatus does not need to send the mediaconnection address of the automatic call distribution apparatus and themedia negotiation result to the agent terminal again. The agent terminalautomatically accepts the media session request that is initiated, bythe automatic call distribution apparatus for which the media connectionaddress is configured, to the agent terminal according to the medianegotiation result, so that the media session is established with theautomatic call distribution apparatus.

After the media session is established, the agent terminal performsprocessing (such as streaming media processing) for the call directly byusing the media session. Except for some control operations, the callcontrol apparatus does not need to participate in a processing process.

During specific implementation, the method 200 may further include thefollowing:

The call control apparatus controls the media session according to acontrol request for the call, where the control request is sent by theagent terminal. For example, when the agent terminal sends a controlrequest for terminating the call, the call control apparatus willterminate the media session. During specific implementation, the controlrequest may be transferred by cloud communication between the agentterminal and the call control apparatus. Specifically, a process ofterminating the media session may be as follows: When an agentrepresentative performs an operation of terminating the call (forexample, the agent representative hangs up), the agent terminalterminates the media session and sends the control request forterminating the call to the call control apparatus. Then, the callcontrol apparatus notifies the automatic call distribution apparatus toterminate the media session. If the call is controlled based on SIP,when receiving the control request from the agent terminal forterminating the call, the call control apparatus may send a ReInvitemessage to the automatic call distribution apparatus to notify theautomatic call distribution apparatus to terminate the media session. Inthis case, the ReInvite message carries SDP parameters such as sendonlyor inactive. In this way, after receiving the ReInvite message, theautomatic call distribution apparatus terminates the media session. Inthis case, the SIP session between the call control apparatus and theautomatic call distribution apparatus is not terminated. Surely, thecall control apparatus may also send a Bye message to the automatic calldistribution apparatus to terminate the media session. In this way,after receiving the Bye message, the automatic call distributionapparatus terminates the media session. In this case, the SIP sessionbetween the call control apparatus and the automatic call distributionapparatus is terminated.

During specific implementation, the method 200 may further include thefollowing:

The call control apparatus registers with the automatic calldistribution apparatus.

During specific implementation, the method 200 may further include thefollowing:

When detecting that the agent terminal is abnormal, the call controlapparatus notifies the automatic call distribution apparatus to transfera preset media stream to a calling user terminal of the call to playpreset media (such as waiting music), and deregisters from the automaticcall distribution apparatus. In this way, when distributing a newincoming call later, the automatic call distribution apparatus does notdistribute the new incoming call to a call control apparatuscorresponding to the abnormal agent terminal.

In the technical solution provided in this embodiment of the presentinvention, the call control apparatus located on the cloud server isresponsible for performing media negotiation based on the mediacapability of the agent terminal and the media capability of theautomatic call distribution apparatus, and establishing a media sessionbetween the agent terminal and the automatic call distribution apparatusaccording to the media connection addresses of the agent terminal andthe automatic call distribution apparatus and the media negotiationresult. After the media session is established, the automatic calldistribution apparatus sends directly streaming media data related tothe call to the agent terminal. The agent terminal performs streamingmedia processing such as encoding and decoding. Therefore, in thetechnical solution provided in this embodiment of the present invention,streaming media processing such as encoding and decoding does not needto be performed on the call control apparatus. In other words,softphone-related processing logic on the cloud server does not need toperform any task such as streaming media data processing, but reservesonly call control functions such as media negotiation. Tasks such asstreaming media data processing in the softphone-related processinglogic are transferred to and implemented by the agent terminal. In thisway, the processing load of the entire cloud server can be significantlyreduced, which effectively ensures the service quality of a call centerconstructed based on cloud computing technologies. Meanwhile, ascompared with a virtual audio card of the cloud server, a physical audiocard of the agent terminal has the higher streaming media processingefficiency. If the cloud server undertakes call processing tasks, thecloud server needs to implement processes such as re-sampling andencoding in many solutions. In addition, data related to a voice callmust be transmitted on a path where cloud communication data istransmitted. A remote data transmitting/receiving and processing unit ofthe cloud server has great pressure. If the agent terminal directlyprocesses a call, the processes such as re-sampling and encoding are notrequired and the remote data transmitting/receiving and processing unitof the cloud server needs to process only data related to cloudcommunication and its pressure is greatly reduced. The agent terminaland automatic call distribution apparatus directly establish a mediasession to process a call without requiring the cloud server to performforwarding processing, which can reduce the network bandwidth pressurebetween the cloud server and the agent terminal, decrease the frequencyof voice data loss caused by bandwidth contention, and improve voicequality. After the media session is established, the processing of thecall is not affected even if the call control apparatus is unavailabledue to a fault of the cloud server because the media session is directlyestablished between the agent terminal and the automatic calldistribution apparatus without using the call control apparatus. Inaddition, cloud communication often uses the Transmission ControlProtocol (TCP) as a transport-layer protocol, whereas a media sessionoften uses the User Datagram Protocol (UDP) as a transport-layerprotocol. Compared with TCP, UDP enables faster connection establishmentand therefore provides a shorter delay during a call.

FIG. 3 is an exemplary flowchart of a call processing method 300according to an embodiment of the present invention.

Step 302: An automatic call distribution apparatus distributes aprocessing request for a call to a call control apparatus, where theprocessing request carries a media connection address and a mediacapability of the automatic call distribution apparatus.

During specific implementation, the distributing, by an automatic calldistribution apparatus, a processing request for a call to a callcontrol apparatus, specifically includes: when detecting an incomingcall, distributing, by the automatic call distribution apparatus, aprocessing request for the call to the call control apparatus.Specifically, the automatic call distribution apparatus selects a callcontrol apparatus from registered call control apparatuses based on anautomatic call distribution technology, and distributes the processingrequest for the call to the call control apparatus.

Step 304: The automatic call distribution apparatus receives a mediaconnection address of an agent terminal returned by the call controlapparatus and a media negotiation result determined by the call controlapparatus by performing media negotiation based on a media capability ofthe agent terminal and the media capability of the automatic calldistribution apparatus.

During specific implementation, step 304 may be further implementedspecifically as follows: The automatic call distribution apparatusreceives the media connection address of the agent terminal returned bythe call control apparatus and the media negotiation result that isdetermined by the agent terminal by performing the media negotiationbased on the media capability of the agent terminal and the mediacapability of the automatic call distribution apparatus and is returnedby the call control apparatus. Specifically, the automatic calldistribution apparatus receives the media connection address of theagent terminal and the media negotiation result returned by the callcontrol apparatus. The media negotiation result is determined by theagent terminal by performing the media negotiation according to themedia capability of the agent terminal and the media capability of theautomatic call distribution apparatus. After the media negotiationresult is determined, the agent terminal returns the media negotiationresult to the automatic call distribution apparatus by using the callcontrol apparatus.

Step 306: The automatic call distribution apparatus establishes a mediasession with the agent terminal according to the media connectionaddress of the agent terminal and the media negotiation result, so thatthe agent terminal processes the call. The process of establishing themedia session is described in detail in step 206 of the method 200, andtherefore is not further described herein.

During specific implementation, the method 300 may further include thefollowing:

The automatic call distribution apparatus controls the media sessionaccording to a control request of a calling user terminal for the call.For example, when a calling user sends a control request for terminatingthe call by using the calling terminal (for example, the calling userhangs up), the automatic call distribution apparatus terminates themedia session. Specifically, when the calling user performs an operationof terminating the call (for example, the calling user hangs up), theautomatic call distribution apparatus terminates the media session andnotifies the call control apparatus to instruct the agent terminal toterminate the media session. Then, the call control apparatus notifiesthe agent terminal to terminate the media session. If the call iscontrolled based on SIP, after terminating the media session, theautomatic call distribution apparatus may send a ReInvite message tonotify the call control apparatus to instruct the agent terminal toterminate the media session. In this case, the ReInvite message carriesSDP parameters such as sendonly or inactive. In this way, afterreceiving the ReInvite message, the call control apparatus notifies theagent terminal to terminate the media session. In this case, the SIPsession between the call control apparatus and the automatic calldistribution apparatus is not terminated. Surely, the automatic calldistribution apparatus may also send a Bye message to the call controlapparatus to terminate the media session. In this way, after receivingthe Bye message, the call control apparatus notifies the agent terminalto terminate the media session. In this case, the SIP session betweenthe call control apparatus and the automatic call distribution apparatusis terminated.

During specific implementation, the method 300 may further include thefollowing:

The automatic call distribution apparatus accepts registration of thecall control apparatus.

During specific implementation, the method 300 may further include thefollowing:

When the automatic call distribution apparatus detects that the callcontrol apparatus is abnormal, the automatic call distribution apparatusderegisters the call control apparatus. In this way, when distributing anew incoming call later, the automatic call distribution apparatus doesnot distribute the new incoming call to the abnormal call controlapparatus.

FIG. 4 is an exemplary flowchart of a call processing method 400according to an embodiment of the present invention.

Step 402: An agent terminal receives a media connection address of anautomatic call distribution apparatus sent by a call control apparatus,and a media negotiation result determined by the call control apparatusby performing media negotiation based on a media capability of the agentterminal and a media capability of the automatic call distributionapparatus.

During specific implementation, step 402 may be further implementedspecifically as follows: The agent terminal receives the mediaconnection address and media capability of the automatic calldistribution apparatus sent by the call control apparatus, performs themedia negotiation based on the media capability of the agent terminaland the media capability of the automatic call distribution apparatus todetermine a media negotiation result, and returns the media negotiationresult to the call control apparatus. In this case, the media connectionaddress of the agent terminal may be stored on the call controlapparatus in advance or be returned to the call control apparatus withthe media negotiation result.

Step 404: The agent terminal establishes a media session with theautomatic call distribution apparatus according to the media connectionaddress of the automatic call distribution apparatus and the medianegotiation result and processes a call distributed by the automaticcall distribution apparatus by using the media session. The process ofestablishing the media session is described in detail in the method 200,and therefore is not further described herein.

During specific implementation, the method 400 may further include thefollowing:

The agent terminal sends a corresponding control request to the callcontrol apparatus according to an operation instruction of an agentrepresentative for the call, so that the call control apparatus controlsthe media session according to the control request. For example, whenthe agent representative sends a control request for terminating thecall by using the agent terminal (for example, the agent representativehangs up), the call control apparatus terminates the media session.During specific implementation, the control request may be transferredby cloud communication between the agent terminal and the call controlapparatus. During specific implementation, a process of terminating themedia session may be as follows: When the agent representative performsan operation of terminating the call (for example, the agentrepresentative hangs up), the agent terminal terminates the mediasession and sends the control request for terminating the call to thecall control apparatus. Then, the call control apparatus notifies theautomatic call distribution apparatus to terminate the media session.Specifically, if the call is controlled based on SIP, when receiving thecontrol request from the agent terminal for terminating the call, thecall control apparatus may send a ReInvite message to the automatic calldistribution apparatus to notify the automatic call distributionapparatus to terminate the media session. In this case, the ReInvitemessage carries SDP parameters such as sendonly or inactive. In thisway, after receiving the ReInvite message, the automatic calldistribution apparatus terminates the media session. In this case, theSIP session between the call control apparatus and the automatic calldistribution apparatus is not terminated. Surely, the call controlapparatus may also send a Bye message to the automatic call distributionapparatus to terminate the media session. In this way, after receivingthe Bye message, the automatic call distribution apparatus terminatesthe media session. In this case, the SIP session between the callcontrol apparatus and the automatic call distribution apparatus isterminated.

FIG. 5 is a signaling diagram of a call processing method 500 accordingto an embodiment of the present invention.

Step 502: An automatic call distribution apparatus detects an incomingcall.

Step 504: The automatic call distribution apparatus selects a callcontrol apparatus from registered call control apparatuses and sends aprocessing request for the call to the call control apparatus. Theprocessing request carries a media connection address and a mediacapability of the automatic call distribution apparatus.

Step 506: The call control apparatus that receives the processingrequest performs media negotiation based on a media capability of anagent terminal corresponding to the call control apparatus and the mediacapability of the automatic call distribution apparatus.

Step 508: The call control apparatus sends the media connection addressof the automatic call distribution apparatus and a media negotiationresult to the agent terminal to notify the agent terminal to accept amedia session request that is initiated, by the automatic calldistribution apparatus for which the media connection address isconfigured, to the agent terminal according to the media negotiationresult, so that a media session is established with the automatic calldistribution apparatus.

Step 510: The call control apparatus sends the media connection addressof the agent terminal and the media negotiation result to the automaticcall distribution apparatus to notify the automatic call distributionapparatus to initiate, according to the media negotiation result, themedia session request to the agent terminal for which the mediaconnection address is configured.

Step 512: The automatic call distribution apparatus sends the mediasession request to the agent terminal according to the received mediaconnection address of the agent terminal and the media negotiationresult.

Step 514: The agent terminal accepts the media session request from theautomatic call distribution apparatus and returns a media sessionresponse.

Step 516: The automatic call distribution apparatus establishes themedia session with the agent terminal and the agent terminal processesthe call.

Step 518: The automatic call distribution apparatus detects on-hook of acalling user and terminates the media session.

Step 520: The automatic call distribution apparatus sends a request forterminating the media session to the call control apparatus.

Step 522: The call control apparatus notifies the agent terminal toterminate the media session.

Step 524: The agent terminal terminates the media session.

FIG. 6 is a schematic diagram of a logical structure of a call controlapparatus 600 according to an embodiment of the present invention. Asshown in FIG. 6, the call control apparatus 600 separately connects toand communicates with an agent terminal and an automatic calldistribution apparatus. The call control apparatus 600 includes anextracting module 602, a negotiating module 604, and an establishingmodule 606.

The extracting module 602 is configured to receive a processing requestfor a call, where the processing request is distributed by the automaticcall distribution apparatus, and extract a media connection address anda media capability of the automatic call distribution apparatus carriedin the processing request.

The negotiating module 604 is configured to perform media negotiationbased on a media capability of the agent terminal and the mediacapability of the automatic call distribution apparatus.

During specific implementation, the negotiating module 604 is furtherconfigured as follows:

When the call control apparatus performs the media negotiation, thenegotiating module 604 may store the media connection address and mediacapability of an agent terminal corresponding to the call controlapparatus in advance, or may obtain the media connection address andmedia capability of the agent terminal from the agent terminal beforeperforming the media negotiation based on the media capability of theagent terminal and the media capability of the automatic calldistribution apparatus.

When the call control apparatus performs the media negotiation, for eachmedia capability parameter, the negotiating module 604 calculates anintersection between a value of the media capability parameter in themedia capability of the agent terminal and a value of the mediacapability parameter in the media capability of the automatic calldistribution apparatus, and uses the intersection as a value of themedia capability parameter in the media negotiation result. Therefore,the media negotiation result includes at least one media capabilityparameter. The value of each media capability parameter is anintersection between the value of the media capability parameter in themedia capability of the agent terminal and the value of the mediacapability parameter in the media capability of the automatic calldistribution apparatus.

Optionally, the negotiating module 604 may be further implementedspecifically as follows: The negotiating module 604 performs the medianegotiation based on the media capability of the agent terminal and themedia capability of the automatic call distribution apparatus by usingthe agent terminal. That is, the negotiating module 604 sends the mediaconnection address and media capability of the automatic calldistribution apparatus to the agent terminal; the agent terminalperforms the media negotiation based on the media capability of theagent terminal and the media capability of the automatic calldistribution apparatus and returns the media negotiation result to thenegotiating module 604. In this case, the media connection address ofthe agent terminal may be stored in the negotiating module 604 inadvance or be returned to the negotiating module 604 with the medianegotiation result. Therefore, in this case, the media negotiation isperformed by the agent terminal.

When the agent terminal performs the media negotiation, for each mediacapability parameter, the agent terminal calculates an intersectionbetween a value of the media capability parameter in the mediacapability of the agent terminal and a value of the media capabilityparameter in the media capability of the automatic call distributionapparatus, and uses the intersection as a value of the media capabilityparameter in the media negotiation result. Therefore, the medianegotiation result includes at least one media capability parameter. Thevalue of each media capability parameter is an intersection between thevalue of the media capability parameter in the media capability of theagent terminal and the value of the media capability parameter in themedia capability of the automatic call distribution apparatus.

The establishing module 606 is configured to establish a media sessionbetween the agent terminal and the automatic call distribution apparatusaccording to the media connection address of the agent terminal, themedia connection address of the automatic call distribution apparatus,and the media negotiation result, so that the agent terminal processesthe call.

Specifically, when the call control apparatus performs the medianegotiation, when establishing the media session, the establishingmodule 606 is specifically configured to: send the media connectionaddress of the agent terminal and the media negotiation result to theautomatic call distribution apparatus to notify the automatic calldistribution apparatus to initiate, according to the media negotiationresult, a media session request to the agent terminal for which themedia connection address is configured. In addition, the establishingmodule 606 sends the media connection address of the automatic calldistribution apparatus and the media negotiation result to the agentterminal to notify the agent terminal to accept the media sessionrequest that is initiated, by the automatic call distribution apparatusfor which the media connection address is configured, to the agentterminal according to the media negotiation result, so that the mediasession is established with the automatic call distribution apparatus.

When the agent terminal performs the media negotiation, whenestablishing the media session, the establishing module 606 isspecifically configured to: send the media connection address of theagent terminal and the media negotiation result to the automatic calldistribution apparatus to notify the automatic call distributionapparatus to initiate, according to the media negotiation result, amedia session request to the agent terminal for which the mediaconnection address is configured. In this case, the agent terminal hasperformed the media negotiation; therefore, the establishing module 606does not need to send the media connection address of the automatic calldistribution apparatus and the media negotiation result to the agentterminal again. The agent terminal automatically accepts the mediasession request that is initiated, by the automatic call distributionapparatus for which the media connection address is configured, to theagent terminal according to the media negotiation result, so that themedia session is established with the automatic call distributionapparatus.

During specific implementation, the call control apparatus 600 mayfurther include:

a controlling module (not shown), configured to control the mediasession according to a control request for the call, where the controlrequest is sent by the agent terminal. During specific implementation,the control request may be transferred by cloud communication betweenthe agent terminal and the call control apparatus. For example, when theagent terminal initiates a control request for terminating the call, thecontrolling module terminates the media session. Specifically, when anagent representative performs an operation of terminating the call (forexample, the agent representative hangs up), the agent terminalterminates the media session and sends a control request for terminatingthe call to the controlling module. Then, the controlling modulenotifies the automatic call distribution apparatus to terminate themedia session. If the call is controlled based on SIP, when receivingthe control request from the agent terminal for terminating the call,the controlling module may send a ReInvite message to the automatic calldistribution apparatus to notify the automatic call distributionapparatus to terminate the media session. In this case, the ReInvitemessage carries SDP parameters such as sendonly or inactive. In thisway, after receiving the ReInvite message, the automatic calldistribution apparatus terminates the media session. In this case, theSIP session between the call control apparatus and the automatic calldistribution apparatus is not terminated. Surely, the controlling modulemay also send a Bye message to the automatic call distribution apparatusto terminate the media session. In this way, after receiving the Byemessage, the automatic call distribution apparatus terminates the mediasession. In this case, the SIP session between the call controlapparatus and the automatic call distribution apparatus is terminated.

During specific implementation, the media negotiation result includes atleast one media capability parameter. A value of each media capabilityparameter is an intersection between a value of the media capabilityparameter in the media capability of the agent terminal and a value ofthe media capability parameter in the media capability of the automaticcall distribution apparatus.

During specific implementation, the call control apparatus 600 mayfurther include:

a registering module (not shown), configured to register a call controlapparatus with the automatic call distribution apparatus, where theregistering module belongs to the call control apparatus.

During specific implementation, the call control apparatus 600 mayfurther include:

a detecting module (not shown), when detecting that the agent terminalis abnormal, configured to notify the automatic call distributionapparatus to transfer a preset media stream to a calling user terminalof the call to play preset media (such as waiting music), and deregisterthe call control apparatus from the automatic call distributionapparatus. In this way, when receiving a new incoming call later, theautomatic call distribution apparatus does not distribute the newincoming call to a call control apparatus corresponding to the abnormalagent terminal.

FIG. 7 is a schematic diagram of a logical structure of an automaticcall distribution apparatus 700 according to an embodiment of thepresent invention. As shown in FIG. 7, the automatic call distributionapparatus 700 separately connects to and communicates with an agentterminal and a call control apparatus. The automatic call distributionapparatus 700 includes a sending module 702, a receiving module 704, andan establishing module 706.

The sending module 702 is configured to distribute a processing requestfor a call to the call control apparatus, where the processing requestcarries a media connection address and a media capability of theautomatic call distribution apparatus.

During specific implementation, the sending module 702 is specificallyconfigured to distribute a processing request for an incoming call tothe call control apparatus when detecting the incoming call.Specifically, the sending module 702 selects a call control apparatusfrom registered call control apparatuses based on an automatic calldistribution technology and distributes the processing request for thecall to the call control apparatus.

The receiving module 704 is configured to receive a media connectionaddress of the agent terminal returned by the call control apparatus anda media negotiation result determined by the call control apparatus byperforming media negotiation based on a media capability of the agentterminal and the media capability of the automatic call distributionapparatus.

During specific implementation, the receiving module 704 may be furtherimplemented specifically as follows: configured to receive the mediaconnection address of the agent terminal returned by the call controlapparatus and the media negotiation result that is determined by theagent terminal by performing the media negotiation based on the mediacapability of the agent terminal and the media capability of theautomatic call distribution apparatus and is returned by the callcontrol apparatus.

The establishing module 706 is configured to establish a media sessionwith the agent terminal according to the media connection address of theagent terminal and the media negotiation result, so that the agentterminal processes the call.

During specific implementation, the automatic call distributionapparatus 700 may further include:

a controlling module (not shown), configured to control the mediasession according to a control request of a calling user terminal forthe call. For example, when the calling user sends a control request forterminating the call by using the calling terminal (for example, thecalling user hangs up), the controlling module terminates the mediasession. Specifically, when the calling user performs an operation ofterminating the call (for example, the calling user hangs up), thecontrolling module terminates the media session and notifies the callcontrol apparatus to instruct the agent terminal to terminate the mediasession. Then, the call control apparatus notifies the agent terminal toterminate the media session. If the call is controlled based on SIP,after terminating the media session, the controlling module may send aReInvite message to notify the call control apparatus to instruct theagent terminal to terminate the media session. In this case, theReInvite message carries SDP parameters such as sendonly or inactive. Inthis way, after receiving the ReInvite message, the call controlapparatus notifies the agent terminal to terminate the media session. Inthis case, the SIP session between the call control apparatus and theautomatic call distribution apparatus is not terminated. Surely, thecontrolling module may also send a Bye message to the call controlapparatus to terminate the media session. In this way, after receivingthe Bye message, the call control apparatus notifies the agent terminalto terminate the media session. In this case, the SIP session betweenthe call control apparatus and the automatic call distribution apparatusis terminated.

During specific implementation, the automatic call distributionapparatus 700 may further include:

a registering module (not shown), configured to accept registration ofthe call control apparatus.

During specific implementation, the automatic call distributionapparatus 700 may further include:

a detecting module (not shown), configured to deregister the callcontrol apparatus when detecting that the call control apparatus isabnormal. In this way, when distributing a new incoming call later, theautomatic call distribution apparatus does not distribute the newincoming call to the abnormal call control apparatus.

FIG. 8 is a schematic diagram of a logical structure of an agentterminal 800 according to an embodiment of the present invention. Asshown in FIG. 8, the agent terminal 800 separately connects to andcommunicates with a call control apparatus and an automatic calldistribution apparatus. The agent terminal 800 includes a receivingmodule 802 and a processing module 804.

The receiving module 802 is configured to receive a media connectionaddress of the automatic call distribution apparatus sent by the callcontrol apparatus and a media negotiation result determined by the callcontrol apparatus by performing media negotiation based on a mediacapability of the agent terminal and a media capability of the automaticcall distribution apparatus.

During specific implementation, the receiving module 802 may be furtherimplemented specifically as follows: configured to receive the mediaconnection address and media capability of the automatic calldistribution apparatus sent by the call control apparatus, perform themedia negotiation based on the media capability of the agent terminaland the media capability of the automatic call distribution apparatus,and return the media negotiation result to the call control apparatus.In this case, the media connection address of the agent terminal may bestored on the call control apparatus in advance or be returned by thereceiving module 802 to the call control apparatus with the medianegotiation result.

The processing module 804 is configured to establish a media sessionwith the automatic call distribution apparatus according to the mediaconnection address of the automatic call distribution apparatus and themedia negotiation result and process a call distributed by the automaticcall distribution apparatus by using the media session.

Specifically, when the call control apparatus performs the medianegotiation, the call control apparatus sends the media connectionaddress of the agent terminal and the media negotiation result to theautomatic call distribution apparatus to notify the automatic calldistribution apparatus to initiate, according to the media negotiationresult, a media session request to the agent terminal for which themedia connection address is configured. In addition, the call controlapparatus sends the media connection address of the automatic calldistribution apparatus and the media negotiation result to theprocessing module 804 to notify the processing module 804 to accept themedia session request that is initiated, by the automatic calldistribution apparatus for which the media connection address isconfigured, to the agent terminal according to the media negotiationresult, so that the media session is established with the automatic calldistribution apparatus.

When the agent terminal performs the media negotiation, the call controlapparatus sends the media connection address of the agent terminal andthe media negotiation result to the automatic call distributionapparatus to notify the automatic call distribution apparatus toinitiate, according to the media negotiation result, a media sessionrequest to the agent terminal for which the media connection address isconfigured. In this case, the agent terminal has performed the medianegotiation; therefore, the call control apparatus does not need to sendthe media connection address of the automatic call distributionapparatus and the media negotiation result to the processing module 804again. The processing module 804 automatically accepts the media sessionrequest that is initiated, by the automatic call distribution apparatusfor which the media connection address is configured, to the agentterminal according to the media negotiation result, so that the mediasession is established with the automatic call distribution apparatus.

During specific implementation, the agent terminal 800 may furtherinclude:

a controlling module (not shown), configured to send a correspondingcontrol request to the call control apparatus according to an operationinstruction of an agent representative for the call so that the callcontrol apparatus controls the media session according to the controlrequest. For example, when the agent representative sends a controlrequest for terminating the call by using the agent terminal (forexample, the agent representative hangs up), the call control apparatusterminates the media session. During specific implementation, thecontrol request may be transferred by cloud communication between theagent terminal and the call control apparatus. During specificimplementation, when the agent representative performs an operation ofterminating the call (for example, the agent representative hangs up),the controlling module terminates the media session and sends thecontrol request for terminating the call to the call control apparatus.Then, the call control apparatus notifies the automatic calldistribution apparatus to terminate the media session. Specifically, ifthe call is controlled based on SIP, when receiving the control requestfrom the agent terminal for terminating the call, the call controlapparatus may send a ReInvite message to the automatic call distributionapparatus to notify the automatic call distribution apparatus toterminate the media session. In this case, the ReInvite message carriesSDP parameters such as sendonly or inactive. In this way, afterreceiving the ReInvite message, the automatic call distributionapparatus terminates the media session. In this case, the SIP sessionbetween the call control apparatus and the automatic call distributionapparatus is not terminated. Surely, the call control apparatus may alsosend a Bye message to the automatic call distribution apparatus toterminate the media session. In this way, after receiving the Byemessage, the automatic call distribution apparatus terminates the mediasession. In this case, the SIP session between the call controlapparatus and the automatic call distribution apparatus is terminated.

A person of ordinary skill in the art may understand that all or a partof the steps of the foregoing methods may be implemented by a programinstructing relevant hardware. The program may be stored in a computerreadable storage medium. The storage medium includes: a ROM, a RAM, andan optical disc.

Although the invention has been described through some exemplaryembodiments, the invention is not limited to such embodiments. It isapparent that those skilled in the art can make various modificationsand variations to the invention without departing from the spirit andscope of the invention. The invention is intended to cover themodifications and variations provided that they fall in the scope ofprotection defined by the following claims or their equivalents.

What is claimed is:
 1. A call processing system, comprising: a thinclient; a cloud server for providing a virtual computer for the thinclient; a call control apparatus corresponding to the thin clientarranged on the cloud server, the call control apparatus configured to:establish a media session between a call initializing apparatus and thethin client; and wherein the thin client is configured to encode anddecode streaming media data of the media session.
 2. The systemaccording to claim 1, wherein: the call control apparatus is furtherconfigured to send a notification message to the thin client to notifythe thin client to accept a media session request sent from the callinitializing apparatus; and the thin client is further configured toreceive the media session request from the call initializing apparatusto establish the media session between the call initializing apparatusand the thin client.
 3. The system according to claim 2, wherein a mediaconnection address of the call initializing apparatus is included in thenotification message.
 4. The system according to claim 1, wherein thecall control apparatus is further configured to receive a call requestfrom the call initializing apparatus and establish the media sessionaccording to the call request.
 5. The system according to claim 1,wherein the call control apparatus is further configured to receive acall control request from the thin client and control the media sessionaccording to the control request.
 6. The system according to claim 5,wherein the call control request is sent through a remote desktopprotocol by the thin client.
 7. The system according to claim 1, whereinthe thin client comprises a physical audio card and the streaming mediadata is encoded and decoded by the physical audio card.
 8. The systemaccording to claim 4, wherein the call request is an invite message ofSIP.
 9. The system according to claim 1, wherein: the thin client isfurther configured to send a request for terminating the media sessionto the call control apparatus; and the call control apparatus is furtherconfigured to notify the call initializing apparatus to terminate themedia session.
 10. The system according to claim 9, wherein the callcontrol apparatus is further configured to send a Reinvite message or aBye message to the call initializing apparatus to terminate the mediasession.
 11. The system according to claim 1, wherein the call controlapparatus is further configured to: perform media negotiation based on amedia capability of the thin client and a media capability of the callinitializing apparatus; and send a media negotiation result to the thinclient and the call initializing apparatus.
 12. The system according toclaim 1, wherein the media session is an RTP session.
 13. The systemaccording to claim 12, wherein the media session is transmitted throughUDP.
 14. The system according to claim 1, wherein the call controlapparatus is further configured to receive a request for terminating themedia session from the call initializing apparatus and notify the thinclient to terminate the media session.
 15. The system according to claim1, wherein the media session is a voice call or video call.